home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue26 / pmanager / PMANAGER.ZIP / PM_Test.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1997-09-07  |  1.3 KB  |  62 lines

  1. unit Pm_test;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, PManager, ExtCtrls, StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     PanelManager1: TPanelManager;
  12.     MPanel1: TMPanel;
  13.     MPanel2: TMPanel;
  14.     MPanel3: TMPanel;
  15.     Btn1: TButton;
  16.     Button1: TButton;
  17.     Button2: TButton;
  18.     Label1: TLabel;
  19.     Label2: TLabel;
  20.     procedure Btn1Click(Sender: TObject);
  21.     procedure Button1Click(Sender: TObject);
  22.     procedure Button2Click(Sender: TObject);
  23.   private
  24.     { Private declarations }
  25.   public
  26.     { Public declarations }
  27.   end;
  28.  
  29. var
  30.   Form1: TForm1;
  31.  
  32. implementation
  33.  
  34. {$R *.DFM}
  35.  
  36. procedure TForm1.Btn1Click(Sender: TObject);
  37. begin
  38.   PanelManager1.TabHighLight :=
  39.     not PanelManager1.TabHighLight;
  40. end;
  41.  
  42. procedure TForm1.Button1Click(Sender: TObject);
  43. begin
  44.   if PanelManager1.TabColor = clRed then
  45.     begin
  46.       PanelManager1.TabColor := clBlue;
  47.       Button1.Caption := 'Press to get Red fliptabs';
  48.     end
  49.   else
  50.     begin
  51.       PanelManager1.TabColor := clRed;
  52.       Button1.Caption := 'Press to get Blue fliptabs';
  53.     end;
  54. end;
  55.  
  56. procedure TForm1.Button2Click(Sender: TObject);
  57. begin
  58.   MPanel3.ParentTabColor := not MPanel3.ParentTabColor; 
  59. end;
  60.  
  61. end.
  62.